const state = {
	recommender: uni.getStorageSync('recommender') || null,
	userId: null,
}

const mutations = {
	SET_USER_ID(state, userId) {
		state.userId = userId;
	}
}

const actions = {
	setUserId({ commit, state }, userId) {
		commit('SET_USER_ID', userId);
	}
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}